package spring.AOPDemo.BeforeAdviceTest;
/*
来看一个没礼貌的服务生
 */
public class NavieWaiter implements Waiter {
    public void greetTo(String name) {
        System.out.println("greet to " + name + "...");
    }

    public void serveTo(String name) {
        System.out.println("serving " + name + "...");

    }
    /*
    每次都是简单的和顾客打招呼，服务也是二话不说，这哪能行？用增强来让它们每次打招呼前都要说欢迎光临
     */
}
